<script setup>
const activeUsers = [
  { name: '云开发者', avatar: 'https://example.com/avatar1.jpg', role: '高级工程师' },
  { name: 'DataMaster', avatar: 'https://example.com/avatar2.jpg', role: '大数据专家' },
  // 更多用户...
]
</script>

<template>
  <el-card class="side-card">
    <template #header>
      <div class="card-title">社区活跃者</div>
    </template>

    <div v-for="user in activeUsers" :key="user.name" class="user-item">
      <el-avatar :size="40" :src="user.avatar" />
      <div class="user-info">
        <div class="user-name">{{ user.name }}</div>
        <div class="user-role">{{ user.role }}</div>
      </div>
    </div>
  </el-card>
</template>

<style scoped>
.side-card {
  margin-bottom: 20px;
}

.card-title {
  font-weight: bold;
  color: #333;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.user-name {
  font-weight: 500;
  color: #333;
}

.user-role {
  font-size: 12px;
  color: #666;
}
</style>